package com.xbongbong.pro.companyconfig.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @description: 设置Web端完成情况中完成率颜色标识
 * @Author: hongxiao
 * @date: 2019-02-17 19:10
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class CompanyConfigSetPerformanceFinishDTO extends BaseDTO {
    /**
     * 完成率颜色区间下限
     */
    @NotNull(message = "{dto.msg.companyConfigSetPerformanceFinish.performanceFinishDown.NotNull}")
    @Min(value = 1, message = "{dto.msg.companyConfigSetPerformanceFinish.performanceFinishDown.Min}")
    @Max(value = 100, message = "{dto.msg.companyConfigSetPerformanceFinish.performanceFinishDown.Max}")
    private Integer performanceFinishDown;
    /**
     * 完成率颜色区间上限
     */
    @NotNull(message = "{dto.msg.companyConfigSetPerformanceFinish.performanceFinishUp.NotNull}")
    @Min(value = 1, message = "{dto.msg.companyConfigSetPerformanceFinish.performanceFinishUp.Min}")
    @Max(value = 100, message = "{dto.msg.companyConfigSetPerformanceFinish.performanceFinishUp.Max}")
    private Integer performanceFinishUp;
}
